<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body> 
</body>
</html>
<script>
    var origin = 1234567;
    console.log("day: "+parseInt(origin / 86400)  + "天");
    console.log("hours: "+parseInt( origin / 3600) + "小时");
    console.log("minutes: "+parseInt (origin / 60) + "分钟");
    console.log("seconds: "+ origin + "秒");
    console.log(parseInt(origin / 86400)+ "天" +parseInt(origin % 86400 /3600) + "小时" +parseInt(origin % 86400 %3600 / 60)  + "分钟" + origin % 86400 %3600 % 60 + "秒");

</script>